package com.example.systemserver.Dao;

import com.example.systemserver.Bean.BookBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {

    int save(BookBean bookBean);

    int update(BookBean bookBean);

    List<BookBean> list(BookBean bookBean);

    int remove(BookBean bookBean);

    BookBean info(BookBean bookBean);

    // 添加根据书名查询的方法
    BookBean findByTitle(String title);

    // 全量删除方法
    int removeAll();
}
